home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17015 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. From: ChrisHines@msn.com (Chris Hines)
  2. Subject: Re: Young programmers read me.
  3. Date: 13 Apr 96 04:41:26 -0700
  4. References: <4icpp9$7hr@barad-dur.nas.com> <aidan-0404961557290001@meathook.intac.com> <3165AD94.6F3A@datalytics.com> <j-jahnke-0604960016160001@ntcs-ip8.uchicago.edu> <4keejc$lpi@tpd.dsccc.com> <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au> <gfarrow.829193316@rainbow>
  5. Message-ID: <00001a81+0000b1fe@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c++
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10. gfarrow@rainbow.rmii.com (Glenn Farrow) writes:
  11.  
  12. >John Joseph Newbigin <079519@bud.cc.swin.edu.au> writes:
  13.  
  14. >>But it is a lot easier to read
  15.  
  16. >>if(something_happened)
  17. >>{
  18. >>     do_something_else();
  19. >>}
  20. >>is_n't_it();   :)
  21.  
  22. >Nonesense.  This style is extremely annoying because it spreads the code out
  23. >too much, it increases the amount you have to page around a source file.  
  24. >Putting "{" on a separate line is a waste of space that should be occupied
  25. >by code.
  26. >
  27. >                            Glenn
  28.  
  29. ". . . it should be kept in mind that the programs should not be
  30. constructed so that they are easy to write, but that they
  31. are easy to read and understand."
  32.  
  33.    -- Pankaj Jalote in "An Integrated Approach to Software Engineering"
  34.  
  35. ----------
  36. Chris Hines        ChrisHines@msn.com
  37.